package com.lian.mapper;

import com.lian.pojo.Policy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lsx
 * @since 2024-04-30
 */
@Mapper
public interface PolicyMapper extends BaseMapper<Policy> {
    List<Policy> selectAll(String name, String document,String organ,String text,String type);
    @Select("select text from policy where id=#{id}")
    String getText(Long id);

}
